using System;
using System.Collections.Generic;
using System.Text;

namespace BlogControl
{
    class Utils
    {
        internal static string ToBase64(string input)
        {
            return Convert.ToBase64String(Encoding.UTF8.GetBytes(input));
        }

        internal static string FromBase64(string input)
        {
            return Encoding.UTF8.GetString(Convert.FromBase64String(input));
        }
    }
}
